package com.codeZ.BridgePattern.pay;

import com.codeZ.BridgePattern.IPayMode;

import java.math.BigDecimal;

/**
 * 支付抽象类 (抽象化角色)
 *
 * @author codeZhang
 * @Date 2024/8/12 18:03
 */
public abstract class Pay {
    //桥接对象
    protected IPayMode payMode;

    public Pay(IPayMode payMode) {
        this.payMode = payMode;
    }

    //划账功能
    public abstract String transfer(String uId, String tradeId, BigDecimal amount);

}
